\hypertarget{classdb_internship}{
\section{db\-Internship \-Class \-Reference}
\label{classdb_internship}\index{db\-Internship@{db\-Internship}}
}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classdb_internship_a72ba90829ea621f24d39e82f5108e7c7}{get\-All\-Internships} ()
\item 
\hyperlink{classdb_internship_a156702c426967fbfa4feee8393144711}{update\-Internship} (\$i)
\item 
\hyperlink{classdb_internship_a8afa8ee7d70fe41fcf2ccb3105373964}{delete\-Internship} (\$i)
\item 
\hyperlink{classdb_internship_aa526662116332f93636c017f0653fc52}{check\-I\-D} (\$i)
\item 
\hyperlink{classdb_internship_ad1c9e03d4ccef5cfe64a55d079626ee3}{get\-Internship} (\$internship\-I\-D)
\item 
\hyperlink{classdb_internship_a5f2f15942d7fed019fe07017d3f12b30}{get\-Student\-I\-D} (\$val)
\item 
\hyperlink{classdb_internship_a3f100c306bc8417defd1a1ae7ce1ea85}{get\-Opportunity\-I\-D} (\$val)
\item 
\hyperlink{classdb_internship_a6d5c6a072a550335ffd0fddbc943e13f}{get\-Hours} (\$internship\-I\-D)
\item 
\hyperlink{classdb_internship_a5e7864d0b2187b4c6a8530755d652443}{get\-Semester} (\$val)
\item 
\hyperlink{classdb_internship_a72f2b9013e3ea001a8696f570e8cc99b}{get\-Special} (\$val)
\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classdb_internship_aea6c4d653e217f31256ded5783ed58f4}{create\-Table} ()
\item 
static \hyperlink{classdb_internship_aeb180b63f0769532646f2e2ee54418a8}{add\-Internship} (\$i, \&\$id)
\item 
static \hyperlink{classdb_internship_aaaca33ac319178544c7cc9df0d9f1578}{get\-All\-By\-I\-D} (\$id, \&\$output)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Communicates with the \hyperlink{class_student}{\-Student} control file to know which student data to get and set. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections

\begin{DoxyCopyright}{\-Copyright}
2011 by \-Dan, \-Steven, \-Brice, \-Mike, and \-Aaron. \-This program is part of \hyperlink{class_internship}{\-Internship} 2 \-Career, which is free software. \-It comes with absolutely no warranty. \-You can redistribute or modify it under the terms of the \-G\-N\-U \-General \-Public \-License as published by the \-Free \-Software \-Foundation (\-For more information, see $<$\href{http://www.gnu.org/licenses/}{\tt http\-://www.\-gnu.\-org/licenses/}).
\end{DoxyCopyright}
\begin{DoxyVersion}{\-Version}
\-February 10, 2011
\end{DoxyVersion}
\begin{DoxyAuthor}{\-Author}
\-Mike \-Tierney, \-Brice \-Rader and \-Aaron \-Jarzombeck \-This is the database file. \-It controls the internship file to list all internships and to add or delete an internship into the database. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections 
\end{DoxyAuthor}


\-Definition at line 26 of file db\-Internship.\-php.



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classdb_internship_aeb180b63f0769532646f2e2ee54418a8}{
\index{db\-Internship@{db\-Internship}!add\-Internship@{add\-Internship}}
\index{add\-Internship@{add\-Internship}!dbInternship@{db\-Internship}}
\subsubsection[{add\-Internship}]{\setlength{\rightskip}{0pt plus 5cm}static add\-Internship (
\begin{DoxyParamCaption}
\item[{\$}]{i, }
\item[{\&\$}]{id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_internship_aeb180b63f0769532646f2e2ee54418a8}
\-Adds a internship to the database. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$i} & \-Class \hyperlink{class_internship}{\-Internship} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
bool \-Returns \-T\-R\-U\-E if query completes successfully. 
\end{DoxyReturn}


\-Definition at line 158 of file db\-Internship.\-php.

\hypertarget{classdb_internship_aa526662116332f93636c017f0653fc52}{
\index{db\-Internship@{db\-Internship}!check\-I\-D@{check\-I\-D}}
\index{check\-I\-D@{check\-I\-D}!dbInternship@{db\-Internship}}
\subsubsection[{check\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}check\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{i}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_aa526662116332f93636c017f0653fc52}
\-Checks to see if the \-I\-D exists. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$i} & \-Class \hyperlink{class_internship}{\-Internship} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
int \-Returns \-F\-A\-L\-S\-E if \-I\-D cannot be found, and \-T\-R\-U\-E if \-I\-D is found 
\end{DoxyReturn}


\-Definition at line 192 of file db\-Internship.\-php.

\hypertarget{classdb_internship_aea6c4d653e217f31256ded5783ed58f4}{
\index{db\-Internship@{db\-Internship}!create\-Table@{create\-Table}}
\index{create\-Table@{create\-Table}!dbInternship@{db\-Internship}}
\subsubsection[{create\-Table}]{\setlength{\rightskip}{0pt plus 5cm}static create\-Table (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_internship_aea6c4d653e217f31256ded5783ed58f4}
\-Table template 

\-Definition at line 33 of file db\-Internship.\-php.

\hypertarget{classdb_internship_a8afa8ee7d70fe41fcf2ccb3105373964}{
\index{db\-Internship@{db\-Internship}!delete\-Internship@{delete\-Internship}}
\index{delete\-Internship@{delete\-Internship}!dbInternship@{db\-Internship}}
\subsubsection[{delete\-Internship}]{\setlength{\rightskip}{0pt plus 5cm}delete\-Internship (
\begin{DoxyParamCaption}
\item[{\$}]{i}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_a8afa8ee7d70fe41fcf2ccb3105373964}
\-Deletes a internship from the database. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$i} & \-Class \hyperlink{class_internship}{\-Internship} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
bool \-Returns \-T\-R\-U\-E if contact can be deleted. 
\end{DoxyReturn}


\-Definition at line 131 of file db\-Internship.\-php.

\hypertarget{classdb_internship_aaaca33ac319178544c7cc9df0d9f1578}{
\index{db\-Internship@{db\-Internship}!get\-All\-By\-I\-D@{get\-All\-By\-I\-D}}
\index{get\-All\-By\-I\-D@{get\-All\-By\-I\-D}!dbInternship@{db\-Internship}}
\subsubsection[{get\-All\-By\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}static get\-All\-By\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{id, }
\item[{\&\$}]{output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_internship_aaaca33ac319178544c7cc9df0d9f1578}
\-Gets all fields by \-I\-D 
\begin{DoxyParams}[1]{\-Parameters}
get\-All\-By\-I\-D & {\em \$id} & \\
\hline
\end{DoxyParams}


\-Definition at line 296 of file db\-Internship.\-php.

\hypertarget{classdb_internship_a72ba90829ea621f24d39e82f5108e7c7}{
\index{db\-Internship@{db\-Internship}!get\-All\-Internships@{get\-All\-Internships}}
\index{get\-All\-Internships@{get\-All\-Internships}!dbInternship@{db\-Internship}}
\subsubsection[{get\-All\-Internships}]{\setlength{\rightskip}{0pt plus 5cm}get\-All\-Internships (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_a72ba90829ea621f24d39e82f5108e7c7}
\-Gets all the internships from the database. \begin{DoxyReturn}{\-Returns}
object \-Returns \-My\-S\-Q\-L data object 
\end{DoxyReturn}


\-Definition at line 66 of file db\-Internship.\-php.

\hypertarget{classdb_internship_a6d5c6a072a550335ffd0fddbc943e13f}{
\index{db\-Internship@{db\-Internship}!get\-Hours@{get\-Hours}}
\index{get\-Hours@{get\-Hours}!dbInternship@{db\-Internship}}
\subsubsection[{get\-Hours}]{\setlength{\rightskip}{0pt plus 5cm}get\-Hours (
\begin{DoxyParamCaption}
\item[{\$}]{internship\-I\-D}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_a6d5c6a072a550335ffd0fddbc943e13f}
\-Gets the hours of a specified internship. 
\begin{DoxyParams}[1]{\-Parameters}
get\-Hours & {\em \$internship\-I\-D} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns 0 on failure, or a \hyperlink{class_internship}{\-Internship} object on success 
\end{DoxyReturn}


\-Definition at line 258 of file db\-Internship.\-php.

\hypertarget{classdb_internship_ad1c9e03d4ccef5cfe64a55d079626ee3}{
\index{db\-Internship@{db\-Internship}!get\-Internship@{get\-Internship}}
\index{get\-Internship@{get\-Internship}!dbInternship@{db\-Internship}}
\subsubsection[{get\-Internship}]{\setlength{\rightskip}{0pt plus 5cm}get\-Internship (
\begin{DoxyParamCaption}
\item[{\$}]{internship\-I\-D}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_ad1c9e03d4ccef5cfe64a55d079626ee3}
\-Gets all the internship information for a internship with a certain \-I\-D. 
\begin{DoxyParams}[1]{\-Parameters}
int & {\em \$internship\-I\-D} & \-I\-D of internship you want to get. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns 0 if \-I\-D does not exist, or a \hyperlink{class_contact}{\-Contact} object if it does 
\end{DoxyReturn}


\-Definition at line 214 of file db\-Internship.\-php.

\hypertarget{classdb_internship_a3f100c306bc8417defd1a1ae7ce1ea85}{
\index{db\-Internship@{db\-Internship}!get\-Opportunity\-I\-D@{get\-Opportunity\-I\-D}}
\index{get\-Opportunity\-I\-D@{get\-Opportunity\-I\-D}!dbInternship@{db\-Internship}}
\subsubsection[{get\-Opportunity\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}get\-Opportunity\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{val}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_a3f100c306bc8417defd1a1ae7ce1ea85}
\-Gets the opportunity\-I\-D of a specified internship. 
\begin{DoxyParams}[1]{\-Parameters}
get\-Opportunity\-I\-D & {\em \$val} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns 0 on failure, or a \hyperlink{class_internship}{\-Internship} object on success 
\end{DoxyReturn}


\-Definition at line 246 of file db\-Internship.\-php.

\hypertarget{classdb_internship_a5e7864d0b2187b4c6a8530755d652443}{
\index{db\-Internship@{db\-Internship}!get\-Semester@{get\-Semester}}
\index{get\-Semester@{get\-Semester}!dbInternship@{db\-Internship}}
\subsubsection[{get\-Semester}]{\setlength{\rightskip}{0pt plus 5cm}get\-Semester (
\begin{DoxyParamCaption}
\item[{\$}]{val}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_a5e7864d0b2187b4c6a8530755d652443}
\-Gets the semester of a specified internship. 
\begin{DoxyParams}[1]{\-Parameters}
get\-Semester & {\em \$val} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns 0 on failure, or a \hyperlink{class_internship}{\-Internship} object on success 
\end{DoxyReturn}


\-Definition at line 270 of file db\-Internship.\-php.

\hypertarget{classdb_internship_a72f2b9013e3ea001a8696f570e8cc99b}{
\index{db\-Internship@{db\-Internship}!get\-Special@{get\-Special}}
\index{get\-Special@{get\-Special}!dbInternship@{db\-Internship}}
\subsubsection[{get\-Special}]{\setlength{\rightskip}{0pt plus 5cm}get\-Special (
\begin{DoxyParamCaption}
\item[{\$}]{val}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_a72f2b9013e3ea001a8696f570e8cc99b}
\-Gets the special of a specified internship. 
\begin{DoxyParams}[1]{\-Parameters}
get\-Special & {\em \$val} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns 0 on failure, or a \hyperlink{class_internship}{\-Internship} object on success 
\end{DoxyReturn}


\-Definition at line 285 of file db\-Internship.\-php.

\hypertarget{classdb_internship_a5f2f15942d7fed019fe07017d3f12b30}{
\index{db\-Internship@{db\-Internship}!get\-Student\-I\-D@{get\-Student\-I\-D}}
\index{get\-Student\-I\-D@{get\-Student\-I\-D}!dbInternship@{db\-Internship}}
\subsubsection[{get\-Student\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}get\-Student\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{val}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_a5f2f15942d7fed019fe07017d3f12b30}
\-Gets the studentid of a specified internship. 
\begin{DoxyParams}[1]{\-Parameters}
get\-Student\-I\-D & {\em \$val} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns \-F\-A\-L\-S\-E on failure, or a \hyperlink{class_internship}{\-Internship} object on success 
\end{DoxyReturn}


\-Definition at line 234 of file db\-Internship.\-php.

\hypertarget{classdb_internship_a156702c426967fbfa4feee8393144711}{
\index{db\-Internship@{db\-Internship}!update\-Internship@{update\-Internship}}
\index{update\-Internship@{update\-Internship}!dbInternship@{db\-Internship}}
\subsubsection[{update\-Internship}]{\setlength{\rightskip}{0pt plus 5cm}update\-Internship (
\begin{DoxyParamCaption}
\item[{\$}]{i}
\end{DoxyParamCaption}
)}}
\label{classdb_internship_a156702c426967fbfa4feee8393144711}
\-Updates internship information. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$i} & \-Class \hyperlink{class_contact}{\-Contact} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
int \-Returns 0 if there was an error updating, else returns 1 
\end{DoxyReturn}


\-Definition at line 85 of file db\-Internship.\-php.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/db-\/control/\hyperlink{db_internship_8php}{db\-Internship.\-php}\end{DoxyCompactItemize}
